package com.motorwaymanage.beans;
/**
 * 常规巡检 
 */
public class CheckInfo {
	private int cid;
	private String ctime;
	private String etime;
	private int cstatus;//默认未进行   1 进行中   2已完成
	
	@Override
	public String toString() {
		return "CheckInfo [cid=" + cid + ", ctime=" + ctime + ", etime=" + etime + ", cstatus=" + cstatus + "]";
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getCtime() {
		return ctime;
	}

	public void setCtime(String ctime) {
		this.ctime = ctime;
	}

	public String getEtime() {
		return etime;
	}

	public void setEtime(String etime) {
		this.etime = etime;
	}

	public int getCstatus() {
		return cstatus;
	}

	public void setCstatus(int cstatus) {
		this.cstatus = cstatus;
	}

	public CheckInfo(int cid, String ctime, String etime, int cstatus) {
		super();
		this.cid = cid;
		this.ctime = ctime;
		this.etime = etime;
		this.cstatus = cstatus;
	}

	public CheckInfo() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + cid;
		result = prime * result + cstatus;
		result = prime * result + ((ctime == null) ? 0 : ctime.hashCode());
		result = prime * result + ((etime == null) ? 0 : etime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CheckInfo other = (CheckInfo) obj;
		if (cid != other.cid)
			return false;
		if (cstatus != other.cstatus)
			return false;
		if (ctime == null) {
			if (other.ctime != null)
				return false;
		} else if (!ctime.equals(other.ctime))
			return false;
		if (etime == null) {
			if (other.etime != null)
				return false;
		} else if (!etime.equals(other.etime))
			return false;
		return true;
	}
}
